package org.wmine.core;

import java.io.FileNotFoundException;

/**
 * Interface for the Project Managemet.
 * @author Prafulla V Tekawade
 *
 */
public interface IProjectManager {
	public static int PROJECT_OPEN_EVENT = 1;
	public static int PROJECT_CLOSE_EVENT = 2;
	
	
	
	public boolean createProject(String projectName,String parentDirectory);
	public void openProject(String projectFilePath) throws InvalidFileException, InvalidProjectFileException;
	public void closeProject();
	public String readFile(String fileName) throws FileNotFoundException;
	public boolean writeFile(String filename,String fileContents,String type,String subtype,String description);
	public boolean writeFile(String filename,String fileContents);
	public boolean fileExists(String fileName);
	public boolean isProjectOpened();
	public String getCurrentProject();
	public String[] getFileNamesArray(String type);
	public String[] getSubtypesNamesArray(String type);
	public void addProjectListener(ProjectListener projectListener);
	public void removeProjectListener(ProjectListener projectListener);

}
